from django_restapi.model_resource import Collection
from django_restapi.responder import XMLResponder, JSONResponder
from django.conf.urls.defaults import *
from django.conf import settings

from ask.models import Question

mymodel_resource = Collection(
    queryset = Question.objects.all(),
    responder = JSONResponder()
)

urlpatterns = patterns('',
    url(r'^json/question/(.*?)/?$', mymodel_resource)
)
